//
//  DetailPage.swift
//  VO_Yuejie
//
//  Created by laichunhui on 15/11/26.
//  Copyright © 2015年 lch. All rights reserved.
//

import UIKit

class DetailPage: NSObject {
    
    /// 创建时间
    var created_at: String?
    
    /// ID
    var id: Int = 0
    
    /// 配图缓存地址
    var image_url: String?
    
    /// 配图下载地址
    var image_url_s: String?
    
    /// 标题
    var text: String?
    
    /// 简内容
    var short_content: String?
    /// 内容
    var content: String?
    
    /// 图片高度
    var image_height: CGFloat = 0
    /// 图片宽度
    var image_width: CGFloat = 0
    
    
    init(dict: [String: AnyObject]) {
        super.init()
        
        setValuesForKeysWithDictionary(dict)
    }
    
    override func setValue(value: AnyObject?, forKey key: String) {
      
        super.setValue(value, forKey: key)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {}
    
    override var description: String {
        
        let keys = ["created_at", "id", "image_url_s", "text", "short_content"]
        
        return dictionaryWithValuesForKeys(keys).description
    }

}
